package net.oschina.app.fragment.favorite;

import net.oschina.app.R;
import net.oschina.app.adapter.TabVPAdpater;
import net.oschina.app.fragment.BaseTabPageFragment;
import net.oschina.app.fragment.favorite.followfans.FFansFragment;
import net.oschina.app.fragment.favorite.msg.MsgDiscussFragment;
import net.oschina.app.fragment.favorite.msg.MsgFavoriteFragmnt;
import net.oschina.app.fragment.favorite.msg.MsgLeaveMsgFragmnt;
import net.oschina.app.fragment.favorite.msg.MsgMeFragment;
import net.oschina.app.util.UIUtils;

/**
 * Created by YL on 2017/4/2.
 */
public class MsgFragment extends BaseTabPageFragment {
    String[] msgTitles = UIUtils.getStrings(R.array.mymes_viewpage_arrays);
    @Override
    protected int getFirstItem() {
        return 0;
    }

    @Override
    public void setupTab(TabVPAdpater adpater) {
        adpater.addTab(msgTitles[0],MsgMeFragment.class,null);
        adpater.addTab(msgTitles[1],MsgDiscussFragment.class,null);
        adpater.addTab(msgTitles[2],MsgLeaveMsgFragmnt.class,null);
        adpater.addTab(msgTitles[3],FFansFragment.class,null);
        adpater.addTab(msgTitles[4],MsgFavoriteFragmnt.class,null);
    }
}
